<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
		<form  action="/sys_admin/account/accountlist/" method="get" id="cashForm" class="form-inline definewidth m20">
	  			会员名：<input type="text" id="username" name="username" style="width: 100px;" value="<?php echo $username?>" />
	  			<button type="button" class="btn btn-success"  onclick="href('/sys_admin/account/accountexcel/?username=<?php echo $username;?>');" >导出数据</button>
	  	</form>
		<table class="table table-bordered table-hover definewidth m10">
			 <thead>
			    <tr>
			        <th><input type="checkbox" value="0" onclick="checkAll(this)" id="checkbox_handle"></th>
						<th><strong>序号</strong></th>
						<th><strong>会员名</strong></th>
						<th><strong>总余额</strong></th>
						<th><strong>可用余额</strong></th>
						<th><strong>冻结金额</strong></th>
						<th><strong>代收金额</strong></th>
						<th><strong>充值总额</strong></th>
						<th><strong>充值次数</strong></th>
						<th><strong>提现总额</strong></th>
						<th><strong>提现总手续费</strong></th>
						<th><strong>提现次数</strong></th>
						<th><strong>注册时间</strong></th>
						<th><strong>操作</strong></th>
			   </thead>
			   <?php foreach($account_list as $key=>$account){?>
			  <tr>
			  	<td><input type="checkbox" value="<?php echo $account['user_id'];?>" onclick="checkon(this)" id="checkbox2" name="checkbox"></td>
					<td><?php echo $account['user_id'];?></td>
					<td><a href="javascript:showUser(<?php echo $account['user_id'];?>);"><?php echo $account['username'];?></a></td>
					<td><?php echo number_format($account['total'],2);?></td>
					<td><?php echo number_format($account['use_money'],2);?></td>
					<td><?php echo number_format($account['no_use_money'],2);?></td>
					<td><?php echo number_format($account['collection'],2);?></td>
					<td><?php echo number_format($account['online_recharge'],2);?></td>
					<td><?php echo intval($account['count_recharge']);?></td>
					<td><?php echo number_format($account['cash_money'],2);?></td>
					<td><?php echo number_format($account['recharge_fee'],2);?></td>
					<td><?php echo intval($account['count_cash']);?></td>
					<td><?php echo date('Y-m-d H:i:s',$account['add_time']);?></td>
					<td><a href="javascript:;" onclick="doSend(<?php echo $account['user_id'];?>);">发送</a> </td>
			  </tr>
			  <?php }?>

			 <tr>
			  
			  	<td colspan="12"  class="invbd_page"><?php echo $this->pagination->create_links();?></td>
			  	<td  colspan="3" bgcolor="#FFFFFF"><font style="color:red;">可用金额的总额为:<?php echo $account_total?>元</font></td>
			  </tr>

		</table>
</div>
<div id="dialog" title="用户信息" style="display:none">
	<div id="view_response"></div>
</div>

<div id="senddialog" title="发送信息" style="display:none">
	<div id="view_send_response"></div>
</div>